package com.wanmao.test;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;



public class DeviceDetailActivity extends BaseActivity {

   private String name,SBLX,DYDJ,GCMC,SCCJ;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_device_details);
        Intent intent=getIntent();
        name=intent.getStringExtra("name");
        if(name==null||name.equals("")){
            name="未知设备名称";
        }
        SBLX=intent.getStringExtra("SBLX");
        DYDJ=intent.getStringExtra("DYDJ");
        GCMC=intent.getStringExtra("GCMC");
        SCCJ=intent.getStringExtra("SCCJ");


        inteView();

    }

    private void inteView() {
        TextView tv_title=(TextView)findViewById(R.id.tv_device_details_title);

        TextView tv_sblx=(TextView)findViewById(R.id.tv_device_details_sblx);
        TextView tv_dydj=(TextView)findViewById(R.id.tv_device_details_dydj);
        TextView tv_sccj=(TextView)findViewById(R.id.tv_device_details_sccj);

        TextView tv_gcsjdw=(TextView)findViewById(R.id.tv_device_details_gcsjdw);

        tv_title.setText(name);

        tv_sblx.setText(SBLX);

        tv_dydj.setText(DYDJ);
        tv_sccj.setText(SCCJ);

        tv_gcsjdw.setText(GCMC);


    }
}
